<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="${tableClass.packageName?replace(".entity",".mapper")}.${tableClass.shortClassName}Mapper">
  <resultMap id="${tableClass.variableName}ResultMap" type="${tableClass.fullClassName}">
    <!--
      Copyright &copy; Well All rights reserved.
      Author:
      Date:2018-09-03
      Description:
    -->
  <#if tableClass.pkFields??>
  <#list tableClass.pkFields as field>
    <id column="${field.columnName}" jdbcType="${field.jdbcType}" property="${field.fieldName}" />
  </#list>
  </#if>
  <#if tableClass.baseFields??>
  <#list tableClass.baseFields as field>
    <result column="${field.columnName}" jdbcType="${field.jdbcType}" property="${field.fieldName}" />
  </#list>
  </#if>
  <#if tableClass.blobFields??>
  <#list tableClass.blobFields as field>
    <result column="${field.columnName}" jdbcType="${field.jdbcType}" property="${field.fieldName}" />
  </#list>
  </#if>
  </resultMap>
</mapper>